/**
 * @author FengLei.You
 */
function GameCanvas(opt){
	Me.extend(Displayable,GameCanvas);
	
	this.KEY_UP=1;
	this.KEY_DOWN=6;
	this.KEY_LEFT=2;
	this.KEY_RIGHT=5;	
	this.KEY_FIRE=8;
	
	this._keyMap={};
	this._keyHandleMap={};
	
	this.isDoubleBuffered=opt.isDoubleBuffered||false;	
	this.supportKeyEvent=opt.supportKeyEvent||false;
	
	this.UP_PRESSED=1<<this.KEY_UP;
	this.DOWN_PRESSED=1<<this.KEY_DOWN;
	this.LEFT_PRESSED=1<<this.KEY_LEFT;
	this.DOWN_PRESSED=1<<this.KEY_RIGHT;
	this.FIRE_PRESSED=1<<this.KEY_FIRE;
}
GameCanvas.prototype.isDoubleBuffered=function(){
	return this.isDoubleBuffered;
}
GameCanvas.prototype.setDoubleBuffered=function(dbf){
	this.isDoubleBuffered=dbf;
	//todo smthing to support
}
GameCanvas.prototype.showNotify=function(){}
GameCanvas.prototype.hideNotify=function(){}
GameCanvas.prototype.onKeyDown=function(keyCode){}
GameCanvas.prototype.onKeyUp=function(keyCode){}
GameCanvas.prototype.repaint=function(x,y,width,height){}
GameCanvas.prototype.setFullScreenMode=function(){}
GameCanvas.prototype.onSizeChanged=function(width,height){}
GameCanvas.prototype.getContext=function(){
	
}
GameCanvas.prototype.flushContext=function(width,height){
	
}
GameCanvas.prototype.paint=function(context){
	
}
GameCanvas.prototype.getKeyStates=function(){
	
}

